<#include "/java_copyright.include">
<#assign className = table.className>   
<#assign classNameLower = className?uncap_first>   
package ${basepackage}.dao;

import ${basepackage}.po.${className};

public interface ${className}Mapper {
	
	public int insert(${className} entity);
	
	public int insertSelective(${className} entity);
	    
	<#list table.columns as column>
	<#if column.unique && !column.pk>
	public ${className} selectBy${column.columnName}(${column.javaType} v);
	
	public int updateBy${column.columnName}(${className} entity);
	
	public int deleteBy${column.columnName}(${table.pkColumn.simpleJavaType} ${table.pkColumn.columnNameFirstLower});
	
	</#if>
	</#list>
}
